﻿<%@ Page Language="C#" MasterPageFile="~/Template/GUEST.Master" AutoEventWireup="true" CodeBehind="timkiemnangcao.aspx.cs" Inherits="BTN04.GUEST.timkiemnangcao" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style6
        {
            width: 100%;
        }
        .style8
        {
            width: 72px;
        }
        .style9
        {
            width: 151px;
        }
        .style10
        {
            width: 117px;
        }
        .style11
        {
            width: 69px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMenuTrai" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cplContent" runat="server">
    <div style="clear:both; display:inline-table; width:615px; margin-top:8px; background-color:#080c08; color:White;">                        	   
	   
        <div style="width:612px; float:left;">
             <div id="title_left_content">
            </div>
            <div id="title_mid_content"> >> TÌM KIẾM NÂNG CAO
            </div>
            <div id="title_right_content">
            </div>
        </div>       
	   
	    <div style="clear:both;">
	        <!--control tim kiem-->
	        <div style="clear:both; display:block;">  
	                 
	            <table class="style6">
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style10">
                            Tên sản phẩm</td>
                        <td class="style9">
                            <asp:TextBox ID="txtTenSanPham" runat="server" Width="145px"></asp:TextBox>
                        </td>
                        <td class="style11">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style10">
                            Giá từ</td>
                        <td class="style9">
                            <asp:DropDownList ID="ddlGiaTu" runat="server" Height="20px" Width="145px">
                            </asp:DropDownList>
                        </td>
                        <td class="style11" align="center">
                            Giá đến</td>
                        <td>
                            <asp:DropDownList ID="ddlGiaDen" runat="server" Height="20px" Width="145px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style10">
                            Xuất Sứ</td>
                        <td class="style9">
                            <asp:DropDownList ID="ddlXuatSu" runat="server" Height="20px" Width="145px">
                            </asp:DropDownList>
                        </td>
                        <td class="style11">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style10">
                            Nhà sản xuất</td>
                        <td class="style9">
                            <asp:DropDownList ID="ddlNhaSanXuat" runat="server" Height="20px" Width="145px">
                            </asp:DropDownList>
                        </td>
                        <td class="style11">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style10">
                            Loại sản phẩm</td>
                        <td class="style9">
                            <asp:DropDownList ID="ddlLoaiSanPham" runat="server" Height="20px" 
                                Width="145px">
                            </asp:DropDownList>
                        </td>
                        <td class="style11">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style10">
                            &nbsp;</td>
                        <td class="style9">
                            &nbsp;</td>
                        <td class="style11">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style10">
                            &nbsp;</td>
                        <td class="style9">
                            <asp:Button ID="btnTimKiem" runat="server" Text="Tìm Kiếm" Width="102px" 
                                onclick="btnTimKiem_Click" />
                        </td>
                        <td class="style11">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style10">
                            &nbsp;</td>
                        <td class="style9">
                            &nbsp;</td>
                        <td class="style11">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
	                 
	        </div>
	        <!--hien thi tim kiem-->
	        <div>        
	            <div style="color:Red;">
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></div>
                <asp:Repeater ID="Repeater1" runat="server"                     
                    DataSourceID="ObjectDataSourceNangCao">
                    
                    <HeaderTemplate>
                    <div style="margin-left:10px; font-size:16pt; color:Blue;">Kết Quả Tìm Kiếm</div>
                    <div id="title_contenttimkiem">
                    </div>
                        <div id="mid_content">
                           <ul id="ul" style="margin-left:3px;">      
                    </HeaderTemplate>
                    <ItemTemplate>
                       <li id="li">
                            <div style="clear:both; display:block;">
                                <div id="top_sanpham">
                                </div>
                                <div id="mid_sanpham">
                                    <div style="width:172px; margin-left:10px; margin-left:10px; padding-top:5px;">
                                         <a href="chitietsanpham.aspx?idSanPham=<%# Eval("MaSanPham")%>&idMaLoaiSanPham=<%# Eval("MaLoaiSanPham")%>">
                                            <img height="150px" src="../<%# Eval("HinhAnh") %>" width="172px" /></a>
                                    </div>
                                    <div id="ten_sanpham" style="font-size:larger;"> 
                                        <a href="chitietsanpham.aspx?idSanPham=<%# Eval("MaSanPham")%>&idMaLoaiSanPham=<%# Eval("MaLoaiSanPham")%>">
                                            <%# Eval("TenSanPham")%></a>
                                    </div>
                                    <div id="gia_sanpham">Giá : <%# Eval("GiaBan") %> VNĐ
                                    </div>
                                </div>
                                <div id="bottom_sanpham">
                                </div>
                            </div>
                        </li>        
                    </ItemTemplate>
                    <FooterTemplate>
                            </ul>
                        </div>
                      <div id="bottom_content">
                      </div> 
                    </FooterTemplate>
                </asp:Repeater>                
                
               
                <asp:ObjectDataSource ID="ObjectDataSourceNangCao" runat="server" 
                    SelectMethod="TimKiemNangCao" TypeName="BTN04.BUS.SanPhamBUS">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="TenSanPham" QueryStringField="TenSP" 
                            Type="String" />
                        <asp:QueryStringParameter Name="GiaTu" QueryStringField="GiaTu" Type="Int32" />
                        <asp:QueryStringParameter Name="GiaDen" QueryStringField="GiaDen" Type="Int32" />
                        <asp:QueryStringParameter Name="MaNhaSanXuat" QueryStringField="MaNhaSanXuat" 
                            Type="Int32" />
                        <asp:QueryStringParameter Name="MaLoaiSanPham" QueryStringField="MaLoaiSanPham" 
                            Type="Int32" />
                        <asp:QueryStringParameter Name="MaXuatSu" QueryStringField="MaXuatSu" 
                            Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
             
                
	        </div>
	    </div>
	</div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMEnuPhai" runat="server">
</asp:Content>
